import Vapor
import Fluent

final class Message: Model, Content {
    static let schema: String = "messages"
    
    @ID
    var id: UUID?
    
    @Field(key: "toAbbreviation")
    var toAbbreviation: String
    
    @Field(key: "fromAbbreviation")
    var fromAbbreviation: String
    
    @Field(key: "messageTitle")
    var messageTitle: String
    
    @Field(key: "messageContent")
    var messageContent: String
    
    @Field(key: "messageType")
    var messageType: Int16
    
    @Field(key: "isSeen")
    var isSeen: Bool
    
    @Field(key: "sendDateTime")
    var sendDateTime: String
        
    @Field(key: "seenDateTime")
    var seenDateTime: String

    
    @Field(key: "isHighPriority")
    var isHighPriority: Bool
    
    @Field(key: "linkedTo")
    var linkedTo: String
    
    
    @Field(key: "additionalInformation")
    var additionalInformation: String?
 
    init() {
        
    }
    
    
    
    
}
